<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <title>Facelet Title</title>
        <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>
    <h:body>
        <h1>MeteoCal</h1>
        Hello from Facelets
        <br />
        <h:link outcome="/calendars/List" value="Show All Calendars Items"/>
        <br />
        <h:link outcome="/events/List" value="Show All Events Items"/>
        <br />
        <h:link outcome="/users/List" value="Show All Users Items"/>
        <br />
        <br />
    </h:body>
    <h:body>
        <h:form>
            If you are already registered, please log in:
            <h:panelGrid columns="2">   
                <h:outputLabel value="#{bundle.CreateUsersLabel_username}" for="username" />
                <h:inputText id="usernameLog" value="#{usersController.selected.username}" title="#{bundle.CreateUsersTitle_username}" required="true" requiredMessage="#{bundle.CreateUsersRequiredMessage_username}"/>
                <h:outputLabel value="#{bundle.CreateUsersLabel_password}" for="password" />
                <h:inputText id="passwordLog" value="#{usersController.selected.password}" title="#{bundle.CreateUsersTitle_password}" required="true" requiredMessage="#{bundle.CreateUsersRequiredMessage_password}"/>
            </h:panelGrid>
            <h:commandButton action="#{usersController.login()}" value="#{bundle.LoginUsersSaveLink}" />
            <br />
            <br />
            Or if you are not, the it's time to register yourself to MeteoCal!
            <br />
            <h:button outcome="indexRegistration" value="Go to registration!" />
            <br />
            
        </h:form>
    </h:body>



</html>

